package com.github.tommas;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringConfigClass {
    @Bean
    public ServiceInterface myService() {
        return new ServiceInterface() {
            @Override
            public String foo() {
                return "my-foo";
            }

            @Override
            public String bar() {
                return "my-bar";
            }
        };
    }
}
